package com.cashbook.mapper;

import com.cashbook.pojo.TbInEx;
import com.cashbook.pojo.TbInExExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface TbInExMapper {
    int countByExample(TbInExExample example);

    int deleteByExample(TbInExExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbInEx record);

    int insertSelective(TbInEx record);

    List<TbInEx> selectByExample(TbInExExample example);

    TbInEx selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbInEx record, @Param("example") TbInExExample example);

    int updateByExample(@Param("record") TbInEx record, @Param("example") TbInExExample example);

    int updateByPrimaryKeySelective(TbInEx record);

    int updateByPrimaryKey(TbInEx record);
    
    List<Map<String,Object>> selectBytypeName(TbInEx record);
    
    List<Map<String,Object>> selectEchartByMonth(TbInEx record);
    
    List<Map<String,Object>> selectEchartByWeek(@Param("openId")String openId, @Param("begintime")Date begintime,@Param("endtime")Date endtime, @Param("cateId")Long cateId);
    
    List<Map<String,Object>> selectAll(TbInEx inex);
}